﻿// Author: Radu-Mihail
// Project: UsersModule, File: User.cs
// Namespace: UsersModule, Class: User
// Path: G:\Secure Project\Library\UsersModule
// Code lines: 78, Size of file: 2.11 KB
// Creation date: 1/13/2009 3:01 PM
// Last modified: 1/13/2009 3:45 PM

#region Using directives
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

#endregion

namespace UsersModule
{
    public class User:GenericUser
    {
        #region Private Fields
        private int _idUser;
        private bool _active;
        private bool _penalized;
        #endregion

        #region Properities
        public int IdUser
        {
            get
            {
                return _idUser;
            }
        }


        public bool Active { get { return _active; } }
        public bool Penalized { get { return _penalized; } }
        #endregion

        /// <summary>
        /// Create user
        /// </summary>
        /// <param name="userName">User name</param>
        /// <param name="userType">User type</param>
        /// <param name="idUser">Id user</param>
        /// <param name="FirstName">First name</param>
        /// <param name="LastName">Last name</param>
        /// <param name="cnp">Cnp</param>
        /// <param name="email">Email</param>
        /// <param name="active">Active</param>
        /// <param name="penalized">Penalized</param>
        public User(string userName, UserTypes userType, bool penalized, bool active, int userId):base(userName, userType, active)
        {
            _idUser = userId;
            _penalized = penalized;            
        } // User(userName, userType, idUser)    
    }
}
